<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>证书验证</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="openssl.certparams.html">« 密钥/证书参数</a></li>
      <li style="float: right;"><a href="ref.openssl.html">OpenSSL 函数 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="book.openssl.html">OpenSSL</a></li>
    <li>证书验证</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="openssl.cert.verification" class="appendix">
<h1>证书验证</h1>

 <p class="para">
  当调用需要验证签名/认证的函数时，<code class="parameter">cainfo</code> 参数是一个包含可信CA文件的文件夹和文件名的数组。如果文件夹指定了，它应该是能够被<strong class="command">openssl</strong>命令正确使用的哈希目录。
 </p>
</div>
</div></div></body></html>